package com.example.forum.service;

import com.example.forum.model.Article;

import java.util.List;

public interface IArticleService {
    Integer insertSelective(Article article);

    List<Article> selectAllByBoardId();

    List<Article> selectByBoardId(Long boardId);

    Article selectArticle(Long articleId);

    Article updateLikeCount(Long articleId);

    Integer deleteArticleById(Long articleId);

    Integer updateArticle(Article article);

    List<Article> selectArticleByUserId(Long userId);
    Article updateCountRise(Long articleId);
}
